package com.fbli.controller;

import com.fbli.pojo.Department;
import com.fbli.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/department")
public class DepartmentController {
    @Autowired
    private DepartmentService departmentService;
    @RequestMapping("/selectDepartment")
    public List<Department> selectDepartment(){
        return departmentService.selectDepartment();
    }
}
